package kr.co.infovil.user.service;

import org.springframework.beans.factory.annotation.Autowired;



import org.springframework.stereotype.Service;

import kr.co.infovil.user.dao.UserDao;
import kr.co.infovil.user.entity.UserDTO;
@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;
	
	@Override
	public int createUser(UserDTO userDto) {
		return userDao.createUser(userDto);
	}

	@Override
	public int getCountMember() {
		return userDao.getCountMember();
	}
	
	@Override
	public UserDTO loginMember(UserDTO userDto) {
		return userDao.loginMember(userDto);
	}

	@Override
	public int idCheck(String userid) {
		return userDao.idCheck(userid);
	}
}